﻿@using CMSMVC4.MultiResource
@model CMSMVC4.Areas.Admin.Models.ContactModels
@{
    ViewBag.Title = @Admin.AddContact;
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

<script type="text/javascript" src="~/Scripts/jquery.validate.min.js"></script>
<script type="text/javascript" src="~/Scripts/jquery.validate.unobtrusive.js"></script>
<div class="row-fluid">
    <div class="span7" style="width: 100%">
        <div class="box paint color_6">
            <div class="title">
                <h4><span>@Admin.AddContact</span> </h4>
            </div>
            <div class="content" style="width: 65%">
                @using (Html.BeginForm("AddContact", "Contact", FormMethod.Post, new { @class = "form-horizontal cmxform", autocomplete = "off" }))
                {

                    @*if (ViewBag.lang == "en-us")
                    {
                    <div class="form-row control-group row-fluid">
                        <label class="control-label span3">@Admin.Company (*)<span class="help-block">@Admin.CompanyMess</span> </label>
                        <div class="controls span7">
                            <input type="text" value="Anthi Vietnam Co., LTD." placeholder="Anthi Vietnam Co., LTD." class="span12" name="CompanyEn"/>
                            @Html.ValidationMessageFor(x => x.CompanyEn)
                        </div>
                    </div>
                    }

                    *@<div class="form-row control-group row-fluid">
                        <label class="control-label span3">@Admin.Company (*)<span class="help-block">@Admin.CompanyMess</span> </label>
                        <div class="controls span7">
                            <input type="text" value="@AdminModels.Company" placeholder="@AdminModels.Company" class="span12" name="CompanyVi"/>
                            @Html.ValidationMessageFor(x => x.CompanyVi)
                        </div>
                    </div>
                    <div class="form-row control-group row-fluid">
                        <label class="control-label span3">@Admin.Phone (*)<span class="help-block">@Admin.PhoneMess</span> </label>
                        <div class="controls span7">
                            @Html.TextBoxFor(x => x.Phone, new { @class = "span12" })
                            @Html.ValidationMessageFor(x => x.Phone)
                        </div>
                    </div>
                    <div class="form-row control-group row-fluid">
                        <label class="control-label span3">@Admin.Fax (*)<span class="help-block">@Admin.FaxMess</span> </label>
                        <div class="controls span7">
                            @Html.TextBoxFor(x => x.Fax, new { @class = "span12" })
                            @Html.ValidationMessageFor(x => x.Fax)
                        </div>
                    </div>
                    <div class="form-row control-group row-fluid">
                        <label class="control-label span3">@Admin.Email (*)<span class="help-block">@Admin.EmailMess</span> </label>
                        <div class="controls span7">
                            @Html.TextBoxFor(x => x.Email, new { @class = "span12" })
                            @Html.ValidationMessageFor(x => x.Email)
                        </div>
                    </div>
                    <div class="form-row control-group row-fluid">
                        <label class="control-label span3">@Admin.Website (*)<span class="help-block">http://www.envato.com</span></label>
                        <div class="controls span7 ">
                            @Html.TextBoxFor(x => x.Website, new { @class = "span12" })
                            @Html.ValidationMessageFor(x => x.Website)
                        </div>
                    </div>
                  
                    <div class="control-group row-fluid">
                        <label class="control-label span3">@Admin.Map (*)<span class="help-block">@Admin.MapMess</span></label>
                        <div class="controls span7">
                            @Html.TextAreaFor(x => x.Map, new { rows = "3", @class = "row-fluid" })
                        </div>
                    </div>
                    <div class="control-group row-fluid">
                        <label class="control-label span3">@Admin.Address (*)<span class="help-block">@Admin.AddressMess</span></label>
                        <div class="controls span7">
                            <ul id="tabExample1" class="nav nav-tabs">
                                <li class="active"><a href="#addEn" data-toggle="tab">@Admin.Vietnamese</a></li>
                                <li><a href="#addVi" data-toggle="tab">@Admin.English</a></li>
                            </ul>
                            <div class="tab-content">
                                <div class="tab-pane fade in active" id="addEn">
                                    @Html.TextAreaFor(x => x.AddressVi, new { rows = "3", @class = "row-fluid" })
                                    @Html.ValidationMessageFor(x => x.AddressEn)
                                </div>
                                <div class="tab-pane fade" id="addVi">
                                    @Html.TextAreaFor(x => x.AddressEn, new { rows = "3", @class = "row-fluid" })
                                    @Html.ValidationMessageFor(x => x.AddressVi)
                                </div>
                            </div>
                        </div>
                    </div>
@*<div class="control-group row-fluid">
                        <label class="control-label span3">@Admin.Dis <span class="help-block">@Admin.Dis</span></label>
                        <div class="controls span7">
                            <ul id="tabExample2" class="nav nav-tabs">
                                <li class="active"><a href="#DisEn" data-toggle="tab">@Admin.Vietnamese</a></li>
                                <li><a href="#DisVi" data-toggle="tab">@Admin.English</a></li>
                            </ul>
                            <div class="tab-content">
                                <div class="tab-pane fade in active" id="DisEn">
                                    @Html.TextBoxFor(x => x.DisVi, new { @class = "span12" })
                                </div>
                                <div class="tab-pane fade" id="DisVi">
                                    @Html.TextBoxFor(x => x.DisEn, new { @class = "span12" })
                                </div>
                            </div>
                        </div>
                    </div>*@
                    <div class="form-actions row-fluid">
                        <div class="span7 offset3">
                            <button type="submit" class="btn btn-primary">@Admin.SaveChange</button>
                        </div>
                    </div>
                }
            </div>
        </div>
        <!-- End .box -->
    </div>
</div>
